package net.shopxx.service;

import net.shopxx.entity.Member;
import net.shopxx.entity.Task;
import net.shopxx.pager.Page;
import net.shopxx.pager.Pageable;

/**
 * Service - 任务
 * 
 * @author frankie
 * @version 3.0
 */
public interface TaskService extends BaseService<Task, Long> {
	
	/**
	 * 查找任务分页
	 * 
	 * @param pageable
	 *            分页信息
	 * @return 任务分页
	 */
	Page<Task> findPage(Pageable pageable);

	/**
	 * 
	 * @param member
	 * @param pageable
	 * @param taskPublisher
	 * @return
	 */
	Page<Task> findPage(Member member, Pageable pageable, boolean taskPublisher);

}
